//引入创建实例方法·
import { createApp } from 'vue'

//引入清除默认样式
import './style/reset.scss'

//引入根组件
import App from './App.vue'

//引入图标样式
import './assets/font/iconfont.css'

//引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//@ts-ignore
import zhCn from 'element-plus/es/locale/lang/zh-cn'

import router from './router';

//引入全局组件——顶部和底部组件
import ShcareTop from './components/shcare_top/index.vue';
import ShcareBottom from './components/shcare_bottom/index.vue';

import pinia from './store'

const app = createApp(App);
app.component('ShcareTop',ShcareTop);
app.component('ShcareBottom',ShcareBottom);

app.use(ElementPlus);
app.use(ElementPlus,{
  locale: zhCn,
});
app.use(router);
app.use(pinia);
app.mount('#app');
